textview: Fix placement of Emoji chooser
authorMatthias Clasen <mclasen@redhat.com>
Wed, 2 Sep 2020 12:04:15 +0000 (08:04 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 2 Sep 2020 19:20:58 +0000 (15:20 -0400)
commit9512e461d5cd3c0473156f821a45c6ac38535438
tree65c4b4deb80caf62ed74c024e5dd4cd086e9cac6
parent70c5dee968709da61a4c05bc6cd0d3b1729034f8
textview: Fix placement of Emoji chooser

If the selection extends beyond the visible range,
place the Emoji chooser over the center of the window.

Fixes: #3109
gtk/gtktextview.c